﻿var options_db = {
	fileName: "db_smit_base",
	version: "",
	displayName: "DB SMIT BASE",
	maxSize: 1024*1000
};

// Creamos las Bases de Datos
if ( window.openDatabase ) {
	
    //var db   = window.openDatabase( options_db.fileName, options_db.version, options_db.displayName, options_db.maxize );
    var db   = window.openDatabase( "db_smit_movil", "", "DB SMIT MOVIL", 1024*1000 );
    
    //alert("db: " + db);
    /*
    var db_smit_base 	= window.openDatabase( options_db_smit_base.fileName, options_db_smit_base.version, options_db_smit_base.displayName, options_db_smit_base.maxize );
	
	var db_smit 		= window.openDatabase( options_db_smit.fileName, options_db_smit.version, options_db_smit.displayName, options_db_smit.maxize );
	
	var db_global 		= window.openDatabase( options_db_global.fileName, options_db_global.version, options_db_global.displayName, options_db_global.maxize );
	
    var db_smit        = window.openDatabase( "db_smit", "", "DB SMIT", 1024*1000 );
    alert("db_smit: " + db_smit);
    
    var db_smit_base   = window.openDatabase( "db_smit_base", "", "DB SMIT BASE", 1024*1000 );
    alert("db_smit_base: " + db_smit_base);
    
    var db_global       = window.openDatabase( "db_global", "", "DB GLOBAL", 1024*1000 );
    alert("db_global: " + db_global);
    
	sessionStorage["db_smit_base"] 	= db_smit_base;
	sessionStorage["db_smit"] 		= db_smit;
	sessionStorage["db_global"] 	= db_global;
	*/
} else {
	alert("Bases de Datos Locales no soportadas");
}